package com.sinosoft.suggest;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.webkit.WebView;
import android.webkit.WebSettings.LayoutAlgorithm;

import com.sinosoft.R;

public class ShowProfitBiggerActivity extends Activity {
	private WebView biggerWebView = null;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.showprofit_biggeractivity);
        biggerWebView = (WebView)findViewById(R.id.profit_profitBiggerWebView);
        biggerWebView.getSettings().setSupportZoom(true);
        biggerWebView.getSettings().setBuiltInZoomControls(true);
//        biggerWebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
        biggerWebView.getSettings().setUseWideViewPort(true); 
        biggerWebView.getSettings().setLoadWithOverviewMode(true);
        
        Bundle tbundle = getIntent().getExtras();
        String html = tbundle.getString("profitHtml");
        biggerWebView.loadDataWithBaseURL("", html, "text/html", "utf-8", "");
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
//        getMenuInflater().inflate(R.menu.activity_show_profit_bigger, menu);
        return false;
    }
}
